﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace University.Models
{
    public class User
    {
        
        public int UserId { get; set; }
     
        [Required(ErrorMessage = "Please provide a valid First Name")]
        public string FirstName { get; set; }
        
        [Required(ErrorMessage = "Please provide a valid Last Name")]
        public string LastName { get; set; }

        [Required(ErrorMessage = "Please provide a valid Birthday")]
        public DateTime Birthday { get; set; }

        [Required(ErrorMessage = "Please provide a valid Phone Number")]
        public string PhoneNumber { get; set; }
        
        public virtual Group Group { get; set; }
      
        public virtual ICollection<Mark> Marks { get; set; }
        [Required]
        public virtual Account Account { get; set; }

    }
}